/**
 * 
 */
package fecat.services.data;

import java.util.ArrayList;
import java.util.List;

import fecat.eventcenter.EventArgs;

/**
 * @author ibm
 *
 */
public class DataWaitService {
	private static List<EventArgs> argLst=new ArrayList<EventArgs>();
	private static String waitingCode;
	public static void setWaitingCode(String code){
		waitingCode=code;
	}
	public static String getWaitingCode(){
		return waitingCode;
	}
	public static void addEventArgs(EventArgs event){
		argLst.add(event);
	}
	public static EventArgs[] getWaitEventArgs(){
		return argLst.toArray(new EventArgs[0]);
	}
	public static void removeAllEvents(){
		argLst.clear();
	}
}
